<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BabyOS: CORE_Exported_Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="2.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BabyOS
   &#160;<span id="projectnumber">V1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">CORE_Exported_Functions<div class="ingroups"><a class="el" href="group___b_a_b_y_o_s.html">BABYOS</a> &raquo; <a class="el" href="group___c_o_r_e.html">CORE</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga249e47165f733672eae3653fcca87829"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_o_r_e___exported___functions.html#ga249e47165f733672eae3653fcca87829">bOpen</a> (uint8_t dev_no, uint8_t flag)</td></tr>
<tr class="memdesc:ga249e47165f733672eae3653fcca87829"><td class="mdescLeft">&#160;</td><td class="mdescRight">Open a device.  <a href="#ga249e47165f733672eae3653fcca87829">More...</a><br /></td></tr>
<tr class="separator:ga249e47165f733672eae3653fcca87829"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga19ddb6f8ca523b3b28b74ea6a1519e3b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_o_r_e___exported___functions.html#ga19ddb6f8ca523b3b28b74ea6a1519e3b">bRead</a> (int fd, uint8_t *pdata, uint16_t len)</td></tr>
<tr class="separator:ga19ddb6f8ca523b3b28b74ea6a1519e3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga078b200cdc68be6d562cc1ad323d9381"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_o_r_e___exported___functions.html#ga078b200cdc68be6d562cc1ad323d9381">bWrite</a> (int fd, uint8_t *pdata, uint16_t len)</td></tr>
<tr class="separator:ga078b200cdc68be6d562cc1ad323d9381"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf0a95eb51c436b56de56cdc63f5dab7c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_o_r_e___exported___functions.html#gaf0a95eb51c436b56de56cdc63f5dab7c">bCtl</a> (int fd, uint8_t cmd, void *param)</td></tr>
<tr class="separator:gaf0a95eb51c436b56de56cdc63f5dab7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad49412624e7b58f0b90ff43e60823eb1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_o_r_e___exported___functions.html#gad49412624e7b58f0b90ff43e60823eb1">bLseek</a> (int fd, uint32_t off)</td></tr>
<tr class="separator:gad49412624e7b58f0b90ff43e60823eb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2d5143bd4493f8069401bb433939de4f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_o_r_e___exported___functions.html#ga2d5143bd4493f8069401bb433939de4f">bClose</a> (int fd)</td></tr>
<tr class="separator:ga2d5143bd4493f8069401bb433939de4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2579ab6e79fad3d62796972ab85a14f0"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_o_r_e___exported___functions.html#ga2579ab6e79fad3d62796972ab85a14f0">bCoreIsIdle</a> (void)</td></tr>
<tr class="separator:ga2579ab6e79fad3d62796972ab85a14f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga2d5143bd4493f8069401bb433939de4f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2d5143bd4493f8069401bb433939de4f">&#9670;&nbsp;</a></span>bClose()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int bClose </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="b__core_8c_source.html#l00265">265</a> of file <a class="el" href="b__core_8c_source.html">b_core.c</a>.</p>

<p class="reference">References <a class="el" href="b__core_8h_source.html#l00087">BCORE_FD_MAX</a>.</p>

</div>
</div>
<a id="ga2579ab6e79fad3d62796972ab85a14f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2579ab6e79fad3d62796972ab85a14f0">&#9670;&nbsp;</a></span>bCoreIsIdle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int bCoreIsIdle </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="b__core_8c_source.html#l00281">281</a> of file <a class="el" href="b__core_8c_source.html">b_core.c</a>.</p>

<p class="reference">References <a class="el" href="b__core_8h_source.html#l00087">BCORE_FD_MAX</a>.</p>

</div>
</div>
<a id="gaf0a95eb51c436b56de56cdc63f5dab7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf0a95eb51c436b56de56cdc63f5dab7c">&#9670;&nbsp;</a></span>bCtl()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int bCtl </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>cmd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>param</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="b__core_8c_source.html#l00254">254</a> of file <a class="el" href="b__core_8c_source.html">b_core.c</a>.</p>

<p class="reference">References <a class="el" href="b__core_8h_source.html#l00087">BCORE_FD_MAX</a>, and <a class="el" href="b__device_8c_source.html#l00232">bDeviceCtl()</a>.</p>

</div>
</div>
<a id="gad49412624e7b58f0b90ff43e60823eb1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad49412624e7b58f0b90ff43e60823eb1">&#9670;&nbsp;</a></span>bLseek()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int bLseek </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>off</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="b__core_8c_source.html#l00239">239</a> of file <a class="el" href="b__core_8c_source.html">b_core.c</a>.</p>

<p class="reference">References <a class="el" href="b__core_8h_source.html#l00087">BCORE_FD_MAX</a>.</p>

</div>
</div>
<a id="ga249e47165f733672eae3653fcca87829"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga249e47165f733672eae3653fcca87829">&#9670;&nbsp;</a></span>bOpen()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int bOpen </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>dev_no</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>flag</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Open a device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev_no</td><td>Device Number </td></tr>
    <tr><td class="paramname">flag</td><td>Open Flag <ul>
<li><a class="el" href="group___c_o_r_e___exported___defines.html#ga9632edfe3a6652c254922f0fc6e4315c">BCORE_FLAG_R</a> </li>
<li><a class="el" href="group___c_o_r_e___exported___defines.html#ga5e134ab3ebc11db6d585cfc1a48aadf0">BCORE_FLAG_W</a> </li>
<li><a class="el" href="group___c_o_r_e___exported___defines.html#ga0198147efa03609c64760662bd8ea00c">BCORE_FLAG_RW</a> </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">Result</td><td><ul>
<li>0 OK </li>
<li>-1 ERR </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="b__core_8c_source.html#l00175">175</a> of file <a class="el" href="b__core_8c_source.html">b_core.c</a>.</p>

<p class="reference">References <a class="el" href="b__core_8h_source.html#l00100">IS_VALID_FLAG</a>.</p>

</div>
</div>
<a id="ga19ddb6f8ca523b3b28b74ea6a1519e3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga19ddb6f8ca523b3b28b74ea6a1519e3b">&#9670;&nbsp;</a></span>bRead()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int bRead </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>pdata</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="b__core_8c_source.html#l00196">196</a> of file <a class="el" href="b__core_8c_source.html">b_core.c</a>.</p>

<p class="reference">References <a class="el" href="b__core_8h_source.html#l00087">BCORE_FD_MAX</a>, and <a class="el" href="b__config_8h_source.html#l00042">NULL</a>.</p>

</div>
</div>
<a id="ga078b200cdc68be6d562cc1ad323d9381"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga078b200cdc68be6d562cc1ad323d9381">&#9670;&nbsp;</a></span>bWrite()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int bWrite </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>pdata</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="b__core_8c_source.html#l00218">218</a> of file <a class="el" href="b__core_8c_source.html">b_core.c</a>.</p>

<p class="reference">References <a class="el" href="b__core_8h_source.html#l00087">BCORE_FD_MAX</a>, and <a class="el" href="b__config_8h_source.html#l00042">NULL</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
